{tpl header}
<script type="text/javascript" src="{$ctx}js/validator.js"></script>
<!--{if false}-->
<link rel="stylesheet" rev="stylesheet" href="../style/style.css" type="text/css" media="all" />
<!--{/if}-->

<div id="account-login">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td>
            <div class="note">
                <h1>UEShop Administrator's Control Panel</h1>
                <p><b>UEShop</b> 是一个采用 PHP 和 MySQL 构建的高效企业电子商务解决方案, 是众多B2C网店首选技术品牌!</p>
                <p style="color:#666; padding:6px 12px;">
                  没有什么能够阻挡<br />
                  你对自由的向往<br />
                  天马行空的生涯<br />
                  你的心了无牵挂<br />
                  摘自《蓝莲花》
                </p>
            </div>
        </td>
        <td width="300">
            <form action="{url user/account/login}" method="POST" enctype="multipart/form-data" target="_self" name="account-login-form" id="account-login-form" onsubmit="return Validator.Validate(this)">
                <div class="login-bg">
                    <div class="login-panel">
                        <h1 class="login-name">用户登录</h1>
                        {if $this->hasErr()}
                        {loop $this->getErrs() $err}
                        <p id="login-err-msg" class="error-message"> &#8226; {$err}</p>
                        {/loop}
                        {/if}
                        <p>
                          <label id="login-account-title" class="login-attr">账　号</label>
                          <input type="text" name="account" id="account" value="" tabindex="1" dataType="Require" msg="账号不能为空" onblur="Validator.check(this)">
                          <a href="#">找回用户名</a>
                        </p>
                        <p>
                          <label id="login-password-title" class="login-attr">密　码</label>
                          <input type="password" name="password" id="password" value="" tabindex="2" dataType="Require" msg="请填写密码" onblur="Validator.check(this)"> 
                          <a href="#">找回密码</a>
                        </p>
                        {if $isUseCaptcha}
                        <p>
                          <label class="login-attr">验证码</label>
                          <input type="text" name="secode" id="secode" class="secode" value="" size="6" tabindex="3" dataType="Require" msg="请填写验证码" onblur="return Validator.check(this)" onkeyup="this.value=this.value.toUpperCase()" />
                          <img id="secode-img" class="secode-img" src="{url 'system/captcha/get/12/entry/userLogin'}" onclick="$('#secode-img').attr('src', '{url 'system/captcha/get/12/entry/userLogin'}&'+Math.random()); document.getElementById('secode').focus(); return false;" />
                          <a href="#" onclick="$('#secode-img').attr('src', '{url 'system/captcha/get/12/entry/userLogin'}&'+Math.random()); document.getElementById('secode').focus(); return false;">看不清</a>
                        </p>
                        {/if}
                        <p style="padding: 10px 40px;"><input name="submit" id="submit" type="submit" value="登录" tabindex="4" class="btn"></p>
                    </div>
                </div>
            </form>
        </td>
      </tr>
    </table>
	<div class="copyright">
        <p>Powered by <a href="http://www.ueshop.cn/" target="_blank">UEShop.cn</a></p>
        <p>&copy; 2009-<?=date('Y')?>, <a href="http://www.ueshop.cn/" target="_blank">UEShop</a> Inc.</p>
    </div>
</div>
<script type="text/javascript" src="{$ctx}js/validator.js"></script>
<script language="javascript" type="text/javascript">
//<![CDATA[
$(document).ready(function(){
	$('#uname').focus();
});
//]]>
</script>

{tpl footer}
